﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administration/Admin.master" AutoEventWireup="true"
    CodeFile="ManagePoster.aspx.cs" Inherits="administration_ManagePoster" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%">
        <div style="width: 40%; float: left">
            <span>PosterID</span>
            <input id="textid" runat="server" type="text" class="text err" />
            <asp:Button ID="SFindID" Text="Find" Width="45px" Height="20px" ForeColor="White"
                BackColor="Black" runat="server" OnClick="SFindID_Click" />
            <%-- <asp:Button Text="Find" CssClass="button" runat="server" ID="fFindID" OnClick="fFindID_Click" />--%>
        </div>
        <br />
    </div>
    <asp:GridView ID="PosterGridView" OnRowCommand="ReviewGridView_RowCommand" runat="server"
        Width="200px" Style="margin-left: 0" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" Text="აღადგინე" runat="server" CommandName="RestoreCommand"
                        CommandArgument='<%# Eval("ID") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton2" Text="წაშლა" runat="server" CommandName="DeleteCommand"
                        CommandArgument='<%# Eval("ID") %>' />
                </ItemTemplate>
            </asp:TemplateField>
          <%--  <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton3" Text="რედაქტირება" runat="server" CommandName="EditCommand"
                        CommandArgument='<%# Eval("ID") %>' />
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="ID" HeaderText="PosterID" ReadOnly="True" />
            <asp:BoundField DataField="Company.CompanyID" HeaderText="CompanyID" ReadOnly="True" />
            <asp:TemplateField HeaderText="სათაური">
                <ItemTemplate>
                    <asp:Label ID="Label1" Width="150px" Text='<%#(Eval("Title")).ToString().Length > 50 ? (Eval("Title")).ToString().Substring(0,50)+"..":(Eval("Title")).ToString() %>'
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="სტატუსი">
                <ItemTemplate>
                    <asp:Label ID="Label2" Width="30px" Text='<%#(Eval("IsDeleted")) == null ? "აქტიური":"წაშლილი" %>'
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CreateDate" HeaderText="შექ.თარღი" ReadOnly="True" />
        </Columns>
    </asp:GridView>
</asp:Content>
